package com.paradox.aggregation.provider.memory;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;
import io.netty.util.ByteProcessor;
import sun.misc.Unsafe;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.channels.FileChannel;
import java.nio.channels.GatheringByteChannel;
import java.nio.channels.ScatteringByteChannel;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class Test {
    public static void main(String[] args) {
        //Unsafe unsafe=Unsafe.getUnsafe();
        ByteBuffer buffer = ByteBuffer.allocateDirect(100);
        buffer.put("abc".getBytes(StandardCharsets.UTF_8));
        System.out.println(buffer);
    }
}
